import request from '@/utils/request'


export function getDeviceGroup(tenantId) {
  return request({
    url: `/api/device/device-group?tenantId=${tenantId}`, 
    method: 'get'
  })
}


export function postDeviceGroup(data) {
  return request({
    url: '/api/device/device-group', 
    method: 'post',
    data
  })
}

export function deleteDeviceGroup(deviceGroupId) {
  return request({
    url: `/api/device/device-group/${deviceGroupId}`, 
    method: 'delete'
  })
}

export function putDeviceGroup(deviceGroupId,data) {
  return request({
    url: `/api/device/device-group/${deviceGroupId}`, 
    method: 'put',
    data
  })
}